package edu.mju.observer;

import java.util.Observable;
import java.util.Observer;

/**
 * @Author:wyp
 * @Date:2020/9/19 21:45
 */
public class TaoBaoObserver implements Observer {
    @Override
    public void update(Observable o, Object arg) {
        String newProduct = (String) arg;
        System.out.println("新产品：【"+newProduct+"】到淘宝");
    }
}
